<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <!--
    <link href="../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="../static/bootstrap/css/docs.css" rel="stylesheet" type="text/css"/>
    -->
   <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
   <link href="/static/viewback/css/mycss.css" rel="stylesheet" type="text/css"/>
   <title>密码重置</title>
</head>
<body>
<div class="header"></div>
<!--<div id="banner"><h2 style="color: blue">论坛后台管理系统</h2>

</div>
    <div class="row-fluid">
       <div style="margin-left:50px;margin-top: 10px;float: left">欢迎管理员<a href="/Admin/user/userInfo?id=<?php echo $_SESSION['userInfo']['id'] ?>"><?php if($_SESSION['userInfo']['role']=='管理员'){echo $_SESSION['userInfo']['username'];}else{header("location:/User/user/login");} ?></a>登录</div>
       <div style="float:right;margin-right: 20px;" class="navbar navbar-inner"> 
            <ul class="nav nav-pills" id="top-nav"> 
            <li  id="index"><a href="/User/forum/forum.html" target="_blank">论坛首页</a></li>
            <li class="divider-vertical"></li>
            <li  id="posts"><a href="/Admin/posts/postsList.html" target="_self">帖子管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="user"><a href="/Admin/user/userList.html" target="_self">会员管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="forum"><a href="/Admin/forum/forumList.html" target="_self">版块管理</a></li>
            <li class="divider-vertical"></li>
            <li  id="logout"><a href="/User/user/logout" target="_self"><i class="icon-off"></i>安全退出</a></li>
           </ul>
       </div>
    </div>

<!--<script type="text/javascript">
    $(document).ready(function(){
        $('li').mouseover(function(){
            $(this).addClass('active');
        });
        $('li').mouseout(function(){
            $(this).removeClass('active');
        });
    });
</script>-->
<script type="text/javascript" src="/static/viewback/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    var oplist = new Array('index', 'posts', 'user', 'forum', 'logout');
    $(document).ready(function() {
            $('#top-nav').find('a').mouseover(function() {
                    var id = $(this).attr('id');
                    $.each(oplist, function(i, n) {
                            $('#'+n).attr('class', 'inactive');
                    });
                    $(this).parents("li").attr('class', 'active');
            });
    });
</script>
<div class="container-fluid" style="font-weight: 700;">
    <div class="navbar navbar-inverse navbar-fixed-top" style="min-width: 1340px;">
        <div class="navbar-inner">
            <a class="brand" href="#">论坛后台管理系统</a>
            <div class="nav-collapse collapse">
                <p class="navbar-text pull-right" style="margin-right: 100px;">
                   欢迎管理员<a href="/Admin/user/userInfo?id=<?php echo $_SESSION['userInfo']['id'] ?>"><?php if($_SESSION['userInfo']['role']=='管理员'){echo $_SESSION['userInfo']['username'];}else{header("location:/User/user/login");} ?></a>登录
                </p>
               <ul class="nav nav-pills" id="top-nav"> 
                <li  id="index"><a href="/User/forum/forum.html" target="_blank">论坛首页</a></li>
                <li class="divider-vertical"></li>
                <li  id="user"><a href="/Admin/user/userList.html" target="_self">会员管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="posts"><a href="/Admin/posts/postsList.html" target="_self">帖子管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="forum"><a href="/Admin/forum/forumList.html" target="_self">版块管理</a></li>
                <li class="divider-vertical"></li>
                <li  id="logout"><a href="/User/user/logout" target="_self"><i class="icon-off"></i>安全退出</a></li>
               </ul>
            </div>
        </div>
    </div>
</div>
<br/>
<br/>


<ul class="breadcrumb">
    <li>
      <a href="/Admin/user/userList"><i class="icon-home"></i></a> <span class="divider">/</span>
    </li>
    <li>
      <a href="/Admin/user/userList">会员管理</a> <span class="divider">/</span>
    </li>
    <li class="active">密码重置</li>
 </ul>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span2">
                <div class="well slidebar-nav" style="width:170px;height: auto">
    <ul class="nav nav-list nav-stacked nav-pills">
        <li class="nav-header">会员管理</li>
        <li><a href="/Admin/user/userList">会员列表</a></li>
        <li><a href="/Admin/user/userOnline">在线会员</a></li>
        <li><a href="/Admin/user/userDrop">账号删除</a></li>
        <li class="nav-header">帖子管理</li>
        <li><a href="/Admin/posts/postsList">主题列表</a></li>
        <li><a href="/Admin/posts/postsNew">今日新帖</a></li>
        <li><a href="/Admin/posts/postsGood">精华帖子</a></li>
        <li class="nav-header">版块管理</li>
        <li><a href="/Admin/forum/forumList">版块列表</a></li>
        <li><a href="/Admin/forum/forumAdd">板块增加</a></li>
        <li><a href="/Admin/forum/forumDelete">版块删除</a></li>
        <li class="nav-header">其他</li>
        <li><a href="/Admin/user/userResetPwd">密码重置</a></li>
        <li><a href="/Admin/forum/dataBack">数据备份</a></li>
        <li><a href="/User/user/logout">安全退出</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $('li').mouseover(function(){
            $(this).addClass('active');
        });
        $('li').mouseout(function(){
            $(this).removeClass('active');
        });
    });
</script>


   
      
            </div>
            <div class="span10">
                <!--<div class="well">
                    <form class="form-inline" action="/Admin/user/userResetPwd" method="post">
                        <label class="control-label" for="user-id">用户ID</label>
                        <input id="user-id" name="user-id" type="text" class="span3" placeholder="用户ID" autofocus />
                        <label class="control-label" for="username">用户名</label>
                        <input id="username" name="username" type="text" class="span3" placeholder="用户名"/>
                        <input class="btn btn-success" type="submit" value="搜索"/>
                        
                    </form>
                </div>-->
               
                    <form class="form-horizontal" action="/Admin/user/userResetPwd" method="post">
                        <fieldset>
                            <legend><h3>密码重置</h3></legend>
                            
                                <div class="control-group">
                                    <label class="control-label" for="username">用户名</label>
                                    <div class="controls">
                                        
                                        <input id="username" type="text" value="<?php echo ($username); ?>" name="username" class="span4" required readonly/>
                                    </div>
                                </div>
                                <div class="control-group">  
                                  <label  class="control-label" for="password">新密码</label>
                                  <div class="controls">
                                     
                                      <input id="password" type="password" name="password" class="span4" required autofocus/>
                                  </div>
                                </div>
                                <div class="control-group">  
                                    <label class="control-label" for="confirma_password">确认密码</label>
                                   <div class="controls">
                                       <input id="confirm_password" type="password" name="confirm_password" class="span4" required/>
                                   </div>
                                </div>     
                        
                        <div class="form-actions">
                            <input type="submit" value="重置密码" class="btn btn-primary"/>&nbsp;<font color="green"><?php echo ($success); ?></font>
                        </div> 
                    </fieldset>
                </form>  
            </div>
        </div>
</div>
<div class="footer"></div>

<div style="margin:5px 20px;">
	<div style="border-bottom: 1px solid silver"></div>
	<div style="padding:15px 0px;line-height:1.0;">
		<p>Copyright &copy;2012-2013 shaobo,test</p>
		<p>Welcome to our Bulletin Board System.It is our <strong>beta</strong> version,contact <a href="mailto:shaaoboo@sina.com"><font color='blue'>shaaoboo@sina.com</font></a> to give us your valuable suggestion.</p>
	</div>
</div>

<script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="/static/viewback/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
            /*$('#username').keydown(function(e){
                if(e.keyCode == 13){
                    e.preventDefault();
                    if($.trim($(this).val())!=''){
                            $('#password').focus();
                    }else{
                            $(this).attr('placeholder','请输入用户名');
                    }
                }	
            });*/

            $('#password').keydown(function(e){
                if(e.keyCode==13){
                    e.preventDefault();
                    if($.trim($(this).val())!=''){
                            $('#confirm_password').focus();
                    }else{
                            $(this).attr('placeholder','请输入密码');
                    }
                }
            });
            $('#confirm_password').keydown(function(e){
                if(e.keyCode==13){
                    e.preventDefault();
                    if($.trim($(this).val())!=''){
                        $('.btn-primary').trigger('click');
                    }else{
                         $(this).attr('placeholder','请确认密码');
                    }
                }
            });
            $('.btn-primary').click(function(){
                if($.trim($('#password').val())!=$.trim($('#confirm_password').val())){
                    alert('两次密码输入不一致');
                    return false;
                }
        });
    });
    
</script>
</body>
</html>